<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="{:url('/')}">
      <img src="__STATIC__/member/image/logo.png" alt="layui" height="40">
    </a>
        <ul class="layui-nav fly-nav-user">
            {if condition="is_login()"}
            <!-- 登入后的状态 -->
            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="javascript:;">
                    <cite class="layui-hide-xs">{:get_username()}</cite>
                    <i class="layui-badge fly-badge-vip layui-hide-xs">VIP3</i>
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('member/index/profile')}"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="{:url('member/index/logout')}" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
            {else/}
            <!-- 登入前的状态 -->
            <li class="layui-nav-item">
                <a class="iconfont icon-touxiang layui-hide-xs" href="{:url('member/index/login')}"></a>
            </li>
            <li class="layui-nav-item">
                <a href="{:url('member/index/login')}">登入</a>
            </li>
            <li class="layui-nav-item">
                <a href="{:url('member/index/register')}">注册</a>
            </li>
            {/if}
        </ul>
    </div>
</div>